<?php
require "vendor/autoload.php";
$obj = new PDO("mysql:host=localhost;dbname=news",'root','root');
use QL\QueryList;
//初始化
$ch = curl_init();

//设置选项，包括URL
curl_setopt($ch, CURLOPT_URL, "http://dianying.114la.com/?kz");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
//执行并获取HTML文档内容
$res = curl_exec($ch);

//释放curl句柄
curl_close($ch);
//打印获得的数据
print_r($res);





